package com.naruto.thinkmgr.comm;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 自定义配置注入
 */
//@Component //这里只是作为示例，启用该类时请打开该注解！
@ConfigurationProperties(prefix="app")
public class AppProperties {
    private String druidUrl;

    public String getDruidUrl() {
        return druidUrl;
    }

    public void setDruidUrl(String druidUrl) {
        this.druidUrl = druidUrl;
    }
}
